#!/bin/sh
# select_distro.sh - Distribution selector for witchlinux installer
# Revival version - 2025

# simplest most KISS of three versions... it can get elaborate here, with automated checks and things.

clear
echo "=========================================="
echo "        Distribution Selection           "
echo "=========================================="
echo ""
echo "Available distributions:"
echo ""
echo "1) Gentoo"
echo "2) Debian"
echo ""
echo "0) Back to main menu"
echo ""

printf "Enter your choice [0-2]: "
read -r choice

case "$choice" in
    1) "$WITCH_ROOT/installers/distros/gentoo.sh" ;;
    2) "$WITCH_ROOT/installers/distros/debian.sh" ;;
    0) exit 0 ;;
    *) echo "Invalid choice"; sleep 1; exec "$0" ;;
esac
